<?php
    $selected_parent_setting = array(
    'table_name' => 'categories',
    'key_field' => 'id',
    'value_field' => 'nomfr',
    'where' => array('parent'=>0),
    'init_data' => 0
    );
?>
<div id="wrapper-content">
    <?php echo form_open_multipart('product/add_animal_category')?>
        <table class="titrepage" width="100%">
            <tr>              
                <td >Nouvelle cat&eacute;gorie</td>
                <td align="right"> </td>
            </tr>
        </table>

        <table width="100%" class="list">
            <tr>
                <td>Nom (Francais)</td>
                <td><input type="text" name="fr_cat_name" size="30"><?php echo form_error('cat_name')?></td> 
            </tr>
            <tr>
                <td>Nom (Anglais)</td>
                <td><input type="text" name="en_cat_name" size="30"><?php echo form_error('cat_name')?></td> 
            </tr>
            <tr>
                <td>Nom (Espagnole)</td>
                <td><input type="text" name="spa_cat_name" size="30"><?php echo form_error('cat_name')?></td> 
            </tr>
            <tr>
                <td>Nom (Allemagne)</td>
                <td><input type="text" name="ger_cat_name" size="30"><?php echo form_error('cat_name')?></td> 
            </tr>
            <tr>
                <td>Nom (Hollande)</td>
                <td><input type="text" name="du_cat_name" size="30"><?php echo form_error('cat_name')?></td> 
            </tr>
            <tr>
                <td>Cat&eacute;gorie parent </td>
                <td><?php echo form_dropdown('parent',dropdown_data($selected_parent_setting),'1','width="30"');?></td>
            </tr>
            <tr>
                <td>Image:</td>
                <td><input type="file" name="userfile" size="20"></td>
            </tr>
            <tr>
                <td><input type="submit" name="submit" value="Ajouter"></td>
            </tr>
        </table>
    </form>
</div>
<!--END wrapper-content-->

